export function useTaskStatus() {
  const taskStatus = ref([{
    label: '已领取',
    value: 'received',
  }, {
    label: '已完成',
    value: 'completed'
  }, {
    label: '已失效',
    value: 'expired'
  }, {
    label: '已领取奖励',
    value: 'issued'
  }])

  const getStatusLabel = (value: string) => {
    return taskStatus.value.find(item => item.value === value)?.label ?? value
  }

  return {
    taskStatus,
    getStatusLabel
  }
}
